#include <stdio.h>

int main(int argc, char *argv[])
{

    int n = 0, k = 0, in = 1;
    scanf("%d %d", &n, &k);
    while (1)
    {
        if (in % n == 0 && in % k == 0)
        {
            printf("%d", in);
            break;
        }
        in++;
    }

    return 0;
}